<template>
  <div style="margin-bottom: 30px;display: flex;justify-content: center;align-items: center">
    <el-input
        @keyup.enter.native="searchClick"
        placeholder="通过医生名或医院名字搜索..."
        prefix-icon="el-icon-search"
        size="small"
        style="width: 400px;margin-right: 10px"
        maxlength="10"
        show-word-limit
        v-model="keywords">
    </el-input>
    <el-button size="small"
               type="primary"
               icon="el-icon-search"
               @click="searchClick">搜索</el-button>
  </div>

</template>

<script>
import doctors from "./doctors";

export default {
  name: "doctorSearchBar",
  data(){
    return {
      keywords: '',
      doctors: [],
      cardLoadings: [],
    }
  },
  methods: {
    searchClick(){
      this.$emit('onSearch');
    }
  }
}
</script>

<style scoped>

</style>